// import Vue from 'vue'
import Router from 'vue-router'
import index from './view/index.vue'
import login from './view/login.vue'
import account from './view/account.vue'

Vue.use(Router)

export default new Router({
  // mode: 'abstract',
  routes: [
    { path: '/index', component: index },
    { path: '/account', component: account },
    { path: '/login', component: login },
    { path: '/', redirect: '/index' }
  ]
})